Optimal. Leaf size=36 \[ -\frac{(a+b) \coth (c+d x)}{d}+x (a+b)-\frac{a \coth ^3(c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.038836, antiderivative size = 36, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {3629, 12, 3473, 8} \[ -\frac{(a+b) \coth (c+d x)}{d}+x (a+b)-\frac{a \coth ^3(c+d x)}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3629
Rule 12
Rule 3473
Rule 8
Rubi steps
\begin{align*} \int \coth ^4(c+d x) \left (a+b \tanh ^2(c+d x)\right ) \, dx &=-\frac{a \coth ^3(c+d x)}{3 d}+\int (a+b) \coth ^2(c+d x) \, dx\\ &=-\frac{a \coth ^3(c+d x)}{3 d}+(a+b) \int \coth ^2(c+d x) \, dx\\ &=-\frac{(a+b) \coth (c+d x)}{d}-\frac{a \coth ^3(c+d x)}{3 d}+(a+b) \int 1 \, dx\\ &=(a+b) x-\frac{(a+b) \coth (c+d x)}{d}-\frac{a \coth ^3(c+d x)}{3 d}\\ \end{align*}
Mathematica [C] time = 0.0360232, size = 61, normalized size = 1.69 \[ -\frac{a \coth ^3(c+d x) \, _2F_1\left (-\frac{3}{2},1;-\frac{1}{2};\tanh ^2(c+d x)\right )}{3 d}-\frac{b \coth (c+d x) \, _2F_1\left (-\frac{1}{2},1;\frac{1}{2};\tanh ^2(c+d x)\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.042, size = 46, normalized size = 1.3 \begin{align*}{\frac{1}{d} \left ( a \left ( dx+c-{\rm coth} \left (dx+c\right )-{\frac{ \left ({\rm coth} \left (dx+c\right ) \right ) ^{3}}{3}} \right ) +b \left ( dx+c-{\rm coth} \left (dx+c\right ) \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.17206, size = 142, normalized size = 3.94 \begin{align*} \frac{1}{3} \, a{\left (3 \, x + \frac{3 \, c}{d} - \frac{4 \,{\left (3 \, e^{\left (-2 \, d x - 2 \, c\right )} - 3 \, e^{\left (-4 \, d x - 4 \, c\right )} - 2\right )}}{d{\left (3 \, e^{\left (-2 \, d x - 2 \, c\right )} - 3 \, e^{\left (-4 \, d x - 4 \, c\right )} + e^{\left (-6 \, d x - 6 \, c\right )} - 1\right )}}\right )} + b{\left (x + \frac{c}{d} + \frac{2}{d{\left (e^{\left (-2 \, d x - 2 \, c\right )} - 1\right )}}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.91492, size = 408, normalized size = 11.33 \begin{align*} -\frac{{\left (4 \, a + 3 \, b\right )} \cosh \left (d x + c\right )^{3} + 3 \,{\left (4 \, a + 3 \, b\right )} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{2} -{\left (3 \,{\left (a + b\right )} d x + 4 \, a + 3 \, b\right )} \sinh \left (d x + c\right )^{3} - 3 \, b \cosh \left (d x + c\right ) + 3 \,{\left (3 \,{\left (a + b\right )} d x -{\left (3 \,{\left (a + b\right )} d x + 4 \, a + 3 \, b\right )} \cosh \left (d x + c\right )^{2} + 4 \, a + 3 \, b\right )} \sinh \left (d x + c\right )}{3 \,{\left (d \sinh \left (d x + c\right )^{3} + 3 \,{\left (d \cosh \left (d x + c\right )^{2} - d\right )} \sinh \left (d x + c\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.19785, size = 116, normalized size = 3.22 \begin{align*} \frac{{\left (d x + c\right )}{\left (a + b\right )}}{d} - \frac{2 \,{\left (6 \, a e^{\left (4 \, d x + 4 \, c\right )} + 3 \, b e^{\left (4 \, d x + 4 \, c\right )} - 6 \, a e^{\left (2 \, d x + 2 \, c\right )} - 6 \, b e^{\left (2 \, d x + 2 \, c\right )} + 4 \, a + 3 \, b\right )}}{3 \, d{\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )}^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]